package cn.lutu.dao.mapper;

import cn.lutu.protocol.entity.Invoice;
import cn.lutu.protocol.vo.InvoiceVO;
import cn.lutu.protocol.vo.adminVO.AdminInvoiceVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @date 2023-06-03
 * @author luoyinhan
 * */
@Repository
public interface InvoiceMapper extends BaseMapper<Invoice> {
    InvoiceVO selectByOrderId(Long orderId);

    List<InvoiceVO> selectByUserId(Long userId);

    List<InvoiceVO> selectByKeyword(String keyword,Long userId);

    List<AdminInvoiceVO> selectAll();
}
